<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>mod_auth_htpasswd</TITLE>
<LINK REL="STYLESHEET" HREF="manual.css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#00003F" ALINK="#FF0000">
<DIV CLASS="body">

<DIV ALIGN="CENTER">
 <A HREF="http://nanoweb.si.kz/"><IMG BORDER="0" SRC="/icons/nanoweb.png" ALT="[NANOWEB DOCUMENTATION]"></A>
 <H3><SMALL>NANOWEB</SMALL>, the aEGiS PHP web server</H3>
</DIV>

<H1 ALIGN="CENTER">mod_auth_htpasswd</H1>

Using this module you can use the <b><tt>.htpasswd</tt></b> authentication
files from apache webserver within nanoweb. These authentication files differ
only slightly from the nanoweb <tt>.nwauth</tt> files (which still can
be used instead).
<br>
As the other authentication modules this one must not only be loaded, but
also activated with the <A HREF="core.html#authrequire">AuthRequire</A>
directive in one of your configuration files (main conf, vhosts.conf or
.nwaccess files):

<br>
<br>

<PRE CLASS="samp">AuthRealm = realm name (will be shown as info text in most browsers)

# use the apache compatible auth scheme
AuthRequire = <b>HTPASSWD</b>

# the login and password pairs are
# kept in this file:
AuthHtpasswdFilename = /var/www/vhosts/www.example.com/admin/.htpasswd </PRE>

<br>
<br>

IT is more secure to give the full path to the .htpasswd file (may have a
different file name of course). Apache`s per-directory password files must
look like:

<br>

<PRE CLASS="samp">login1:des-password1
login2:des-password2
...
loginNNN:des-passwordNNN
</PRE>

<br>

So you see, only the first line distincts this the original
<A HREF="mod_auth_nwauth.html">nanoweb authentication files</A>.
The passwords should be encrypted witg the standard crypt() system call
(DES passwords).


<br>
<BR><HR NOSHADE COLOR="#063239">
 <H3 ALIGN="CENTER"> <SMALL>NANOWEB</SMALL>, the aEGiS PHP web server </H3>
<DIV CLASS="navline"><A HREF="index.html">Index</A> &nbsp; <A HREF="modules.html">Modules</A> &nbsp; <A HREF="core.html">Configuration</A> &nbsp; <A HREF="../">READMEs</A> &nbsp; <A HREF="faq.html">FAQ</A> &nbsp; <A HREF="http://forums.t0x.net/viewforum.php?f=1">Support Forum</A></DIV>

</DIV>
</BODY>
</HTML>
